﻿<UserControl x:Class="PJ.Presentation.Inventory.InventoryItemBasicInfoView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <Style x:Key="TitleText" TargetType="TextBlock">
            <Setter Property="FontFamily" Value="Franklin Gothic"/>
            <Setter Property="FontSize" Value="18"/>
            <Setter Property="FontWeight" Value="Normal"/>
            <Setter Property="Background" Value="#FF77B6EB"/>
            <Setter Property="Foreground" Value="#FFFFFFFF"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
        </Style>
        <Style x:Key="ContentText" TargetType="TextBlock">
            <Setter Property="FontFamily" Value="Franklin Gothic"/>
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="FontWeight" Value="Normal"/>
            <Setter Property="Foreground" Value="#FF77B6EB"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="5,2,5,2"/>
        </Style>
        <Style x:Key="TitleBorder" TargetType="Border">
            <Setter Property="CornerRadius" Value="10"/>
            <Setter Property="Background" Value="#FF77B6EB"/>
            <Setter Property="Margin" Value="5,2,5,2"/>
        </Style>
    </UserControl.Resources>
    <StackPanel >
        <Border Style="{StaticResource TitleBorder}">
            <TextBlock Text="Article" Style="{StaticResource TitleText}"/>
        </Border>
        <Border>
            <StackPanel Orientation="Horizontal">
                <TextBlock Style="{StaticResource ContentText}" Text="{Binding Path=InventoryItem.ID}"/>
                <TextBlock Style="{StaticResource ContentText}" Text="{Binding Path=InventoryItem.Name}"/>
            </StackPanel>
        </Border>
        <Border>
            <StackPanel>
                <TextBlock Style="{StaticResource ContentText}" Text="{Binding Path=InventoryItem.Phone}"/>
                <TextBlock Style="{StaticResource ContentText}" Text="{Binding Path=InventoryItem.Address}"/>
            </StackPanel>
        </Border>
    </StackPanel>
</UserControl>